﻿<UserControl x:Class="Oxage.Views.EditorView"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:m="clr-namespace:Oxage.Models"
  xmlns:avalon="http://icsharpcode.net/sharpdevelop/avalonedit">
  <UserControl.DataContext>
    <m:EditorViewModel />
  </UserControl.DataContext>
  <Grid x:Name="LayoutRoot">
    <Border Background="#595959" CornerRadius="0,3,3,3">
      <Grid Margin="4">
        <Grid.RowDefinitions>
          <RowDefinition Height="Auto" />
          <RowDefinition Height="*" />
          <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <!--<TextBlock Grid.Row="0" Text="Editor" Style="{DynamicResource HeaderTextStyle}" />-->
        <Border Grid.Row="1" ClipToBounds="True" Margin="0,2,0,0" CornerRadius="3">
          <!-- G code editor, highlighted -->
          <avalon:TextEditor Name="textEditor" ShowLineNumbers="True" TabIndex="50" Background="#444444" Foreground="White" FontFamily="Consolas" FontSize="10pt" MinHeight="200" />
        </Border>
        <Grid Grid.Row="2" Margin="0,4,0,0">
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="100" />
          </Grid.ColumnDefinitions>
          <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left">
            <TextBlock Text="Ln " />
            <TextBlock Text="{Binding CaretLine}" />
          </StackPanel>
          <StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Left">
            <TextBlock Text="Col " />
            <TextBlock Text="{Binding CaretColumn}" />
          </StackPanel>
        </Grid>
      </Grid>
    </Border>
  </Grid>
</UserControl>
